package com.baizhi.wwk.service;

import com.baizhi.wwk.entity.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService {
    Map<String, Object> queryOnePage(int page, int pageSize);//分页查一级类别
    void addFirst(Category category);//添加
    Map<String,Object> delete(int id);//删除
    List<Category> queryByLevelsCategory();//下拉列表
    void update(Category category);//修改
    Category queryById(int id);//queryById
    Map<String, Object> queryTwoPage(int page, int pageSize,int categoryId);//分页查二级类别
}
